import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: const Text("忆衣"),
          backgroundColor: Color(int.parse("0xFFf4b888")),
        ),
        body: Container(
          color: Color(int.parse("0xFFf8d4b8")),
          child: Column(
            children: <Widget>[
              ElevatedButton(onPressed: () {}, child: const Text("button")),
              Card(
                child: Column(
                  children: [Image.asset('images/er.png'), const Text("照片")],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
  
  // 创建了一个状态方法
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    throw UnimplementedError();
  }
}
